﻿namespace KinonekoSoftware.CodariaDB.Runtimes.Messages
{
    public abstract class Factory_MSG : DB_MSG
    {
        public sealed override Type OverrideMapping         => typeof(Factory_MSG);
        public sealed override bool OverrideMappingBehavior => true;
        public                 int  Type                    { get; init; }
    }

    public sealed class Factory_MSG<T> : Factory_MSG where T : class
    {
        public string Id       { get; init; }
        public T      Instance { get; set; }
    }
}